package com.example.wordlistdemo;

public class WordEntity {
    private String english;
    private String chinese;
    private String phonetic;
    private int familiar;
    private int isHide;

    public WordEntity(String english, String chinese, String phonetic, int familiar,int isHide) {
        this.english = english;
        this.chinese = chinese;
        this.phonetic = phonetic;
        this.familiar = familiar;
        this.isHide = isHide;
    }

    public String getEnglish() {
        return english;
    }

    public void setEnglish(String english) {
        this.english = english;
    }

    public String getChinese() {
        return chinese;
    }

    public void setChinese(String chinese) {
        this.chinese = chinese;
    }

    public String getPhonetic() {
        return phonetic;
    }

    public void setPhonetic(String phonetic) {
        this.phonetic = phonetic;
    }

    public boolean isFamiliar() {
        return familiar == 1?true:false;
    }

    public boolean isHide() {
        return isHide == 1 ? true : false;
    }

    public void setFamiliar(int familiar) {
        this.familiar = familiar;
    }

    public int getIsHide() {
        return isHide;
    }

    public void setIsHide(int isHide) {
        this.isHide = isHide;
    }
}
